package com.crm.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.crm.dao.UserDao;
import com.crm.entity.Comment;
import com.crm.entity.User;
import com.crm.mapper.UserMapper;

@Repository("CommentDaoImpl")
public class CommentDaoImpl extends SqlSessionDaoSupport {

	 public List<Comment> getAllComment() {       
	        return this.getSqlSession().selectList("com.crm.entity.Comment.getAllComment",null);
	    }
	 public int insertComment(Comment comment){
		 return this.getSqlSession().selectOne("com.crm.entity.Comment.insertComment",comment);
	 }
}
